package com.bckj.freshnow.order.trade.execution.create;

import com.bckj.fastboot.core.execution.Execution;
import com.bckj.fastboot.core.execution.ExecutionContext;
import com.bckj.freshnow.order.trade.fsm.TradeOrderContext;
import org.springframework.stereotype.Component;

/**
 * 校验订单校验
 */
@Component
public class CreateTradeOrderCheckExecution implements Execution {

    @Override
    public void execute(ExecutionContext context) {
        TradeOrderContext ctx = (TradeOrderContext) context;
        //校验商品是否可售
        //检验活动是否有效
        //校验优惠券是否可用
        //检验库存是否充足
    }
}